<?xml version="1.0" encoding="UTF-8" ?>
 
<xsl:stylesheet version="1.0" 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
        xmlns="http://www.w3.org/1999/xhtml">
    <xsl:output method="xml" indent="no"
        doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
        doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>

<xsl:include href="../../../templates/root.xsl"/>
<xsl:include href="../../../templates/date_selector.xsl"/>
<xsl:include href="report_selector.xsl"/>

<xsl:template match="*"/>

<xsl:template match="report_name">
    <xsl:call-template name="reportSelector"/>
    <xsl:call-template name="dateSelector"/>
    <h1><xsl:value-of select="."/></h1>
</xsl:template>

<xsl:template match="report_data">
    <table class="reportTable">
        <tr>
            <td></td>
            <th>Просмотров</th>
            <th>Визитов</th>
            <th>Посетителей</th>
            <th>Из них новых</th>
        </tr>
        <xsl:apply-templates select="row"/>
    </table>
</xsl:template>

<xsl:template match="row">
        <tr>
            <td><xsl:value-of select="@dateHuman"/></td>
            <td><xsl:value-of select="@hits"/></td>
            <td><xsl:value-of select="@sessions"/></td>
            <td><xsl:value-of select="@visitors"/></td>
            <td><xsl:value-of select="@visitorsNew"/></td>
        </tr>
</xsl:template>

</xsl:stylesheet>